load("//adev/shared-docs:defaults.bzl", "copy_to_bin")
load("//adev/shared-docs:index.bzl", "generate_guides")

generate_guides(
    name = "guide",
    srcs = glob([
        "*.md",
    ]),
    api_manifest = "//adev/src/assets:docs_api_manifest",
    data = [
        "//adev/src/content/examples",
    ],
    visibility = ["//adev:__subpackages__"],
)

copy_to_bin(
    name = "guide_files",
    srcs = [
        "//adev/src/content/guide/animations:guide_files",
        "//adev/src/content/guide/aria:guide_files",
        "//adev/src/content/guide/components:guide_files",
        "//adev/src/content/guide/di:guide_files",
        "//adev/src/content/guide/directives:guide_files",
        "//adev/src/content/guide/forms:guide_files",
        "//adev/src/content/guide/forms/signals:guide_files",
        "//adev/src/content/guide/http:guide_files",
        "//adev/src/content/guide/i18n:guide_files",
        "//adev/src/content/guide/performance:guide_files",
        "//adev/src/content/guide/routing:guide_files",
        "//adev/src/content/guide/signals:guide_files",
        "//adev/src/content/guide/templates:guide_files",
        "//adev/src/content/guide/testing:guide_files",
    ] + glob(["**/*.md"]),
    visibility = ["//adev:__subpackages__"],
)
